package com.puzzlebazar.client.puzzle.model;

public class MoveClearPuzzle extends MoveNonReversible {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1523296391883056030L;
	
	/**
	 * Only for serialization
	 */
	protected MoveClearPuzzle() {
		super();
	}
	
	public MoveClearPuzzle(long time) {
		super(time);
	}

	@Override
	public void accept(MoveVisitor visitor) throws Exception {
		visitor.visitMoveClearPuzzle( this );
	}

	@Override
	public Move apply(PuzzleModel model) throws Exception {
		return model.clear( time );
	}
}
